#include "stdafx.h"
#include "CDevice.h"
#include "MyDef.h"
#include "CScene.h"
#include "CSceneGame.h"
#include "CGame.h"

void CSceneGame::Init()
{
	CGame::GetInstance().GameInit();
}

void CSceneGame::End()
{
	CGame::GetInstance().GameFin();
}

void CSceneGame::Update()
{
	/*
	if(!CGame::GetInstance().GameError())
	break;
	*/
	CGame::GetInstance().GameUpdate();
}

void CSceneGame::Draw()
{
	CGame::GetInstance().GameDraw();
}

SceneType CSceneGame::Run()
{
	Update();
	DX.BeginScene();
	Draw();
	DX.EndScene();
	return SCENE_GAME;
}